<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript" src="${ctx}/ui/webuploader-0.1.5/webuploader.js"></script>
<script type="text/javascript">
    var editor;
    $(function(){
        $('#cname').focus();
        window.setTimeout(function() {
            editor = KindEditor.create('#direction', {
                width : '1310px',
                height : '450px',
                items : [ 'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript', 'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak', 'anchor', 'link', 'unlink' ],
                uploadJson : '${ctx}/FileUpload.acc',
                fileManagerJson : '${ctx}/fileController/fileManage.acc',
                allowFileManager : true
            });
            parent.$.messager.progress('close');
        }, 1);

    })
</script>
<form id="car_add_Form" method="post">
    <table class="table">
        <tr>
            <th style="width:100px">名称：</th>
            <td><input type="text" id="cname" name="cname" class="easyui-textbox" data-options="required:true,missingMessage:'名称不能为空！'" style="width:500px;height:30px;"/></td>
        </tr>
        <tr>
            <th>型号：</th>
            <td><input type="text" id="xinghao" name="xinghao" class="easyui-textbox" data-options="required:true,missingMessage:'型号不能为空！'" style="width:500px;height:30px;"/></td>
        </tr>
        <tr>
            <th>品牌：</th>
            <td><input type="text" id="pinpei" name="pinpei" class="easyui-textbox" data-options="required:true,missingMessage:'品牌不能为空！'" style="width:500px;height:30px;"/></td>
        </tr>
        <tr>
            <th>描述：</th>
            <td colspan="2">
                <textarea name="direction" id="direction"  cols="50" rows="5" style="visibility: hidden;"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <h1 th:inlines="text">文件上传</h1>
                <form action="fileUpload" method="post" enctype="multipart/form-data">
                    <p>选择文件: <input type="file" name="fileName"/></p>
                    <p><input type="submit" value="提交"/></p>
                </form>
            </td>
        </tr>
    </table>
</form>
